import { __DEV__ } from '@hs-admin/utils'

// 菜单配置项
export const originMenuOptions = <any[]>[
  {
    label: '首页',
    key: '/overview',
    show: 1
  },
  {
    label: '数据超市',
    key: '数据超市',
    show: 1,
    children: [
      {
        key: '数据表',
        label: '数据表',
        show: 1,
        children: [
          {
            label: '基础数据',
            key: '/marketBasicData/themeDetail',
            show: 1,
            routerlist: [
              { label: '基础数据', key: '/marketBasicData' },
              { label: '数据项详情', key: '/dataItemDetail' }
            ]
          },
          {
            label: '基础数据集合',
            key: '/marketItemSet',
            show: 1
          }
        ]
      },
      {
        key: '数据标签',
        label: '数据标签',
        show: 1,
        children: [
          {
            label: '标签',
            key: '/tags',
            show: 1
          }
        ]
      },
      {
        key: '产业数仓',
        label: '产业数仓',
        show: 1,
        children: [
          {
            label: '产业数仓',
            key: '/marketIndustryData/themeDetail',
            routerlist: [
              { label: '产业数仓', key: '/marketIndustryData' },
              { label: '图谱详情', key: '/marketIndustryData/themeDetail/dataItemDetail' }
            ],
            show: 1
          }
        ]
      },
      {
        key: '数据产品',
        label: '数据产品',
        show: 1,
        children: [
          {
            label: '数据应用',
            key: '/marketWebsite',
            show: 1
          }
        ]
      }
    ]
  },
  {
    label: '工作台',
    key: '工作台',
    show: 1,
    children: [
      {
        key: '我的订单',
        label: '我的订单',
        show: 1,
        children: [
          {
            label: '我的数据服务订单',
            key: '/myDataService',
            show: 1
          },
          {
            label: '我的数据供给订单',
            key: '/myShoppingOrderList',
            show: __DEV__ && 1
          }
        ]
      }
    ]
  },
  {
    label: '运营中心',
    key: '运营中心',
    permission: 'datashop.menu.top.view',
    children: [
      {
        key: '资产管理',
        label: '资产管理',
        show: 1,
        children: [
          {
            label: '基础数据管理',
            key: '/operationBasic/item',
            show: 1,
            routerlist: [
              { label: '数据项详情', key: '/operationBasic/itemDetail' },
              { label: '数据主题维护', key: '/operationBasic/theme' }
            ]
          },
          {
            label: '基础数据集合管理',
            key: '/itemSet/category',
            routerlist: [{ label: '基础数据集合维护', key: '/itemSet/list' }],
            show: 1
          },
          {
            label: '产业数仓管理',
            key: '/operationIndustry/atlas',
            routerlist: [
              { label: '图谱维护详情', key: '/operationIndustry/atlasDetail' },
              { label: '领域维护', key: '/operationIndustry/domain' }
            ],
            show: 1
          },
          {
            label: '组件管理',
            key: '/website/category',
            show: 1,
            routerlist: [{ label: '组件产品维护', key: '/website/list' }]
          }
        ]
      },
      {
        key: '平台管理',
        label: '平台管理',
        show: 1,
        children: [
          {
            label: '文档管理',
            key: '/docMaintain',
            show: 1
          },
          {
            label: '项目管理',
            key: '/project',
            show: 1
          }
        ]
      },
      {
        key: '需求订单',
        label: '需求订单',
        show: 1,
        children: [
          {
            label: '数据服务订单',
            key: '/dataService',
            show: 1
          },
          {
            label: '数据供给订单',
            key: '/shoppingOrderList',
            show: __DEV__ && 1
          }
        ]
      }
    ]
  }
]
